// @cgsThemeBackground: #222C3C;   //主题色
// @cgsContentBackground: #1C2531;
// @cgsFontColor: #ffffff;
// @cgsIconColor: #f0f0f0;
// @itemHoverBg: #3f65b6b0;


// @cgsThemeBackground: #ffffff;
// @cgsContentBackground: #f5f5f5;
// @cgsFontColor: #000000;
// @cgsIconColor: #757575;
// @itemHoverBg: #efefef;


@borderColor: #7a7a7a23;
@menuWidth: 240px;
@headerHeight: 50px;

.portalTheme(
  @cgsThemeBackground:#ffffff,
  @cgsContentBackground: #f5f5f5,
  @cgsFontColor: #000000,
  @cgsIconColor: #757575,
  @itemHoverBg: #efefef,
){
  color: @cgsFontColor;
  width: 100%;
  height: 100%;
  background: @cgsThemeBackground;
  font-family: PingFangSC-Semibold, PingFang SC, Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif!important;

  .header {
    width: 100%;
    height: @headerHeight;
    background: @cgsThemeBackground;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 20px;
    font-size: 20px;
    line-height: 40px;
    z-index: 15;
    box-shadow: 1px 2px @borderColor
  }
  .header-left {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-left: 40px;
  }
  .header-left-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  .header-right {
    //width: 150px;
    height: 40px;
    justify-content: space-evenly;
    align-items: center;
    margin-right: 10px;

    .store_icon{
      font-size: 24px;
      padding: 5px;
      margin-right: 20px;
      color: @cgsIconColor;
    }

    .user_style{
      font-size: 18px;
      padding: 5px;
      cursor: pointer;
      color: @cgsIconColor;
    }
  }
  .cgs-icon {
    width: 25px;
    height: 25px;
    background-position: center;
    background-size: 100% 100%;
  }
  .top-bar__img{
    //margin: 0 5px 0 5px;
    padding: 2px;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    box-sizing: border-box;
    border: 1px solid #757575;
    vertical-align: middle;
  }
  .container {
    width: 100%;
    position: absolute;
    top: calc(@headerHeight + 3px);
    bottom: 0;
    left: 0;
  }
  .container-menu{
    width: @menuWidth;
    height: 100%;
    border-right: 1px solid @borderColor;
    background: @cgsThemeBackground;
    transition: width 0.5s;
  }
  .container-menu-item{
    color: @cgsIconColor;
    width: 100%;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    margin-top: 5px;
    cursor: pointer;
  }
  .menu-icon {
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 20px;
  }
  .menu-title {
    margin-left: 20px;
    font-size: 16px;
    // font-weight: bold;
  }
  .container-menu-item:hover, .menu-active{
    background: @itemHoverBg !important;
  }
  .container-menu-hidden{
    flex-shrink: 0;
    width: 12px;
    margin-left: 5px;
    height: 100%;
    background: @cgsThemeBackground;
  }
  .container-flex-bt {
    z-index: 15;
    width: 18px;
    height: 125px;
    margin-top: -125px;
    line-height: 125px;
    top: 50%;
    left: @menuWidth;
    position: absolute;
    cursor: pointer;
    transition: left 0.5s;
    background: @cgsThemeBackground;
    border-radius: 0 18px 18px 0;
    border-right: 1px solid @borderColor;
    border-top: 1px solid @borderColor;
    border-bottom: 1px solid @borderColor;
  }
  .container-content {
    overflow: hidden;
    position: absolute;
    height: 100%;
    bottom: 0;
    left: @menuWidth;
    padding: 20px 40px;
    right: 0;
    transition: left 0.5s;
  }

  .category-table{
    background: @cgsThemeBackground !important;
    border-radius: 3px;
    border: 1px solid @borderColor;
    overflow-y: auto;
  }

  .tenant{
    .tenant-header{
      width: 100%;
      height: 35px;
      color: @cgsFontColor;
      flex: 0 0 35px;
      justify-content: space-between;
    }
    .tenant-header-left{
      font-size: 16px;
      font-weight: bold;
    }
    .remain_time {
        font-family: PingFangSC-Semibold, PingFang SC;
        text-shadow: 0 3px 5px rgba(7, 17, 39, 0.1);
        color: @cgsFontColor;
        display: inline;
    }
    .tenant_item{
        display: flex;
        align-items: center;
        color: @cgsFontColor;
        margin: 5px;
        width: 520px;
        justify-content: space-between;
    }
    .tenant-content{
      flex: 1 1 auto;
    }
    .tenant-table{
      background: @cgsThemeBackground;
      border-radius: 3px;
      border: 1px solid @borderColor;
      overflow-y: auto;
    }
    
  }

  .account{
    .account-safe{
        color: @cgsFontColor;
        display: flex;
        margin-top: 20px;
    }
    .account-safe-hr{
        margin-top: 20px;
        width: 500px;
        border:1px solid @borderColor;
    }
    .account-safe-title{
        margin-left: 10px;
        width: 200px;
    }
    .account-safe-inner{
        color: #409EFF;
        cursor: pointer;
    }
  }

  .tenant-content, .category-table{
    .el-table th, .el-table tr,.el-table, .el-table__expanded-cell {
      background-color: @cgsThemeBackground !important;
      color: @cgsFontColor;
    }
    .el-table tbody tr:hover>td {
      background-color: @itemHoverBg !important;
    }
    
    .el-table .cell{
      text-align: center;
    }
    
    .el-table__fixed-right-patch, .el-table--border::after{
      background-color: @cgsThemeBackground;
    }
    
    .el-table__fixed-right::before, .el-table__fixed::before,.el-table::before{
      display: none;
    }
    .el-table th.is-leaf {
      border-bottom: 1px solid @borderColor;
    }
    .el-table td, .el-table__fixed-right-patch, .el-table--border th {
      border-bottom: 1px solid @borderColor !important;
      border-right: 1px solid @borderColor !important;
    }
    .el-table--border, .el-table--group {
      border: none;
    }
    
    .custom-tree-node {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      padding-right: 8px;
      color: @cgsFontColor;
    }
    .el-tree-node:focus>.el-tree-node__content, .el-tree-node__content:hover, .el-tree-node.is-current>.el-tree-node__content {
      background-color: @itemHoverBg;
    }
    .el-tree {
        background: transparent;
    }
  }

  .content{
    width: 100%;
    height: 100%;
    
    .content_nav {
      width: 100%;
      height: 60px;
      position: relative;
      
      .ant-tabs, 
      .ant-tabs-tab-prev, .ant-tabs-tab-next,
      .ant-tabs-tab-btn-disabled, .ant-tabs-tab-btn-disabled:hover{
        color: @cgsFontColor;
      }
      .ant-tabs-bar{
        border-bottom: 1px solid @borderColor;
      }
  
      .orgTab{
        .ant-tabs-bar{
          margin: 0;
          border-bottom: none;
        }
      }
      .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{
        background-color: @cgsThemeBackground;
        border: 1px solid @borderColor;
      }
    }
    .content-card-list {
      position: relative;
      flex: 1 1 auto;
      flex-wrap: wrap;
      overflow-y: auto;
      align-content: flex-start;
    }
    .content_list {
      position: relative;
      flex: 1 1 auto;
      overflow-y: auto;
    }
    .content_floor, .tenant_floor {
      flex: 0 0 auto;
      .el-pagination{
        float: right;
        span{
          color: @cgsIconColor;
        }
        input, button, li{
          background-color: @cgsThemeBackground;
          color: @cgsFontColor;
          border: none;
        }
      }
    }
    .content-card-item {
      //margin: 5px;
      width: 32.53%;
      margin: 0.4%;
      @media screen and (min-width: 1800px) {
        width: 24.2%;
        margin: 0.4%;
      }
    }
    .content_list-item {
      margin-bottom: 10px;
    }
  
    .content_buttons {
      padding-left: 20px;
    }
  
    .cgs-select, .cgs-input{
      border-radius: 4px !important;
      width: 500px;
      height: 40px;
    }
    .button-icon {
      display: inline-block;
      width: 15px;
      height: 15px;
      background-size: 100% 100%;
      margin-right: 5px;
    }
  }

  
  .cgs-card, .cgs-list {
    color: @cgsFontColor;
    background: @cgsThemeBackground;
    border: 1px solid @borderColor;
    
    .card-view, .list-view {
      background: @cgsContentBackground;
    }
    
    .card-extend-content, .list-view-container {
      background: @cgsThemeBackground;
    }
    .card-extend-item, .list-extend-item {
      color: @cgsIconColor;
      border-bottom: 1px solid @borderColor;
    }
    .card-extend-item:hover, .list-extend-item:hover {
      background: @itemHoverBg;
    }
    .card-extend, .card-status, .list-status {
        background: @cgsContentBackground;
    }
  }

  .auth{
    color: @cgsFontColor;
    .auth-return{
        font-size: 25px;
        margin-right: 10px;
        cursor: pointer;
    }
    .auth-card {
        border: 1px solid @borderColor;
    }
    .auth-card-header {
        color: @cgsFontColor;
        background: @cgsThemeBackground;
    }
    .auth-card-header:hover {
        background: @itemHoverBg;
        border: 1px solid @borderColor;
    }
    .auth-card-count{
        background: @cgsContentBackground;
    }
    .auth-card-extend {
        background: @cgsContentBackground;
    }
    .auth-add-user-item:hover, .auth-user:hover {
        background: @itemHoverBg;
    }
    .auth-card-icon{
        color: @cgsIconColor;
    }
  }
}